class Hero:
    hp = 0
    power = 0
    name = ''
    def __init__(self, hp, power):
        self.hp = hp
        self.power = power
        self.name = self.__class__.__name__
    def fight(self, enemy_hp, enemy_power):
        '''

        :param enemy_hp:敌人的血量
        :param enemy_power:敌人的攻击力
        :return:
        '''
        hero_end_hp = self.hp - enemy_power
        enemy_end_hp = enemy_hp - self.power
        if hero_end_hp > enemy_end_hp :
            print(f'{self.name}和敌人对决，{self.name}赢了')
        elif hero_end_hp == enemy_end_hp :
            print(f'{self.name}和敌人对决，平局')
        else:
            print(f'{self.name}和敌人对决，敌人赢了')

        return ''

class Timo(Hero):
    def __init__(self):
        super(Timo, self).__init__(1000, 1000)

class Jinx(Hero):
    def __init__(self):
        super(Jinx, self).__init__(1000, 1000)

# Jinx = Jinx();
# print(Jinx.fight(800, 800))
#
# Timo = Timo();
# print(Timo.fight(800, 800))